package com.github.baichuan.mapping.entity;

import com.github.baichuan.mapping.EnumDescription;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Resource {

    private String id;

    private String name;

    private String code;

    private Kind kind;

    private String route;

    private String path;

    private String iconCss;

    private int sort;

    private Resource parent;


    public enum Kind {
        @EnumDescription("菜单")
        menu,

        @EnumDescription("页面")
        page,

        @EnumDescription("操作")
        action
    }
}
